package cn.xspace.module.other.http.req;

import com.google.gson.Gson;
import com.xspace.android.xafcommon.network.message.ARequestMsg;
import com.xspace.android.xafcommon.util.Constants;
import com.xspace.android.xafcommon.util.LogUtils;

import java.util.HashMap;
import java.util.Map;


public class QueryLoginInfoReq extends ARequestMsg {
	public String mobile;
	public String password ;
	public String appId ;
//	TelephonyManager tm = (TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE);
	@Override
	public String getURL() {
		LogUtils.d("QueryLoginInfoReq==>" + Constants.URL_QUERY_USERJID);
		return Constants.URL_QUERY_USERJID;
	}

	@Override
	protected byte[] toBytes() {

		Map<String,Object> dataMap = new HashMap<String, Object>();
		dataMap.put("mobile", mobile);
		dataMap.put("pwd", password);
		dataMap.put("app_id", appId);
		String value = new Gson().toJson(dataMap);
		LogUtils.d("QueryLoginInfoReq==>" + value);
		return value.getBytes();
	}

	/*
	 * <p>Title: toJson</p> <p>Description: </p>
	 * 
	 * @return
	 * 
	 * @see com.xspace.android.xafcommon.network.message.ARequestMsg#toJson()
	 */
	@Override
	protected String toJson() {
		return null;
	}

}
